{% extends "base.html" %}{% load i18n crm_tags %} {% block title %}{% translate "Shifts" %}{% endblock %} {% block content %}

{% translate "Shifts" %}

{% blocktranslate trimmed with start=monday|date:"j M" end=sunday|date:"j M Y" %}Week of {{ start }} to {{ end }}.{% endblocktranslate %} {% blocktranslate trimmed with ds=times.day_starts|time:"H:i" de=times.day_ends|time:"H:i" ns=times.night_starts|time:"H:i" ne=times.night_ends|time:"H:i" %}Day shift {{ ds }}–{{ de }}, night shift {{ ns }}–{{ ne }}.{% endblocktranslate %}

‹ {{ prev_week|date:"j M" }} {% if monday != this_week %}{% translate "This week" %}{% endif %} {{ next_week|date:"j M" }} › {% translate "Download (CSV)" %} {% if user.may_plan_shifts %}{% translate "Plan this week" %}{% endif %}
{% if mine %}
{% translate "Your shifts this week" %} {% for day, sh in mine %}{{ day|date:"D j M" }} · {% if sh.period == "day" %}{% translate "Day" context "shift" %}{% else %}{% translate "Night" context "shift" %}{% endif %} {{ sh.start|clock }}–{{ sh.end|clock }}{% endfor %}
{% endif %} {% if not rota.shifts %}
{% translate "No shifts planned for this week." %} {% if user.may_plan_shifts %}{% translate "Plan this week" %}{% else %}{% translate "An administrator plans the shifts." %}{% endif %}
{% endif %}
{% translate "Date" %} {% translate "Day shift" %} {{ times.day_starts|time:"H:i" }}–{{ times.day_ends|time:"H:i" }} {% translate "Night shift" %} {{ times.night_starts|time:"H:i" }}–{{ times.night_ends|time:"H:i" }}
{% for row in rota.rows %}
{{ row.day|date:"l" }} {{ row.day|date:"j M" }}{% if row.is_today %} {% translate "Today" %}{% endif %}
{% for sh in row.shifts %}
{% if sh.period == "day" %}{% translate "Day shift" %}{% else %}{% translate "Night shift" %}{% endif %}{% if sh.now %} {% translate "On now" %}{% endif %} {% for e in sh.people %} {{ e.user.display_name }}{% if e.status %} {{ e.label }}{% endif %} {% empty %} {% translate "No one" %} {% endfor %}
{% endfor %}
{% endfor %}
{% if planners %}

{% translate "Shifts are planned by" %} {% for p in planners %}{{ p.display_name }}{% if not forloop.last %}, {% endif %}{% endfor %}. {% translate "Ask them to change the rota." %}

{% endif %} {% if has_agents %}

{% translate "For agents, shifts that have started show whether they signed in, from attendance: Absent until they sign in, and Late when they signed in after the shift started." %}

{% endif %} {% endblock %}